<script setup lang="ts">
//热门商品
import { SingleMeat } from "@/store/interface";


import SingleShow from "@/components/block/public/singleShow.vue";

defineProps<{ data: SingleMeat[] }>();
</script>
<template>
  <section class="common-normal-box">
    <header>
      <h5>置顶推荐</h5>
      <aside class="right-operation" v-show="false">
        <button class="btn-arrow btn-left disabled"></button>
        <button class="btn-arrow btn-right"></button>
      </aside>
    </header>
    <aside
      class="common-flex-box flex-four animation"
      style="transform: translate(0px, 0px)"
    >
      <SingleShow :data="data"/>
    </aside>
  </section>
</template>
<style scoped lang="less">
.common-normal-box header .right-operation {
  position: absolute;
  right: 10px;
  top: 0;
  height: 60px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  .btn-arrow {
    display: inline-block;
    border: none;
  }
  .btn-left,
  .btn-right {
    width: 48px;
    height: 48px;
    background: url()
      no-repeat;
    background-size: 48px;
  }
  .btn-left {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  .btn-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }
}
.animation {
  -webkit-transition: all 0.5s ease-in;
  transition: all 0.5s ease-in;
}
</style>
